
package com.kuizii.demo.api;

import com.kuizii.demo.domain.SysUserDto;
import com.kuizii.demo.domain.user.AddUserRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author nuanyang
 * Email freexiaodong@163.com
 * Created by 2019-06-16 16:24:15
 */
@FeignClient(value = "kuizii-platform-demo")
public interface SysUserService  {

    @GetMapping("/core/sys_user/getUserById")
    SysUserDto getUserById(@RequestParam("id") String id);


    @PostMapping("/core/sys_user/addUser")
    void addUser(@RequestBody AddUserRequest userDto);
}
